package com.ykzb.user.service;

import com.ykzb.base.bean.ResultBean;
import com.ykzb.user.model.User;

import javax.servlet.http.HttpServletRequest;


public interface UserService {

     ResultBean login(HttpServletRequest request, String userName, String password) throws Exception;

     void insert(User user) throws Exception;

     ResultBean getRegisterCode(String mobile) throws Exception;

     boolean isMobileExists(String mobile) throws Exception;

     User getUserByMobile(String mobile) throws Exception;


}